#!/bin/sh
FILE="./.env"
cat > ${FILE} <<- EOF
APP_DEBUG = false

[APP]
DEFAULT_TIMEZONE = Asia/Shanghai

[DATABASE]
TYPE = mysql
HOSTNAME = ${MYSQL_HOST}
DATABASE =${MYSQL_DATABASE}
USERNAME = ${MYSQL_USERNAME}
PASSWORD = ${MYSQL_PASSWORD}
HOSTPORT = 3306
CHARSET = utf8
DEBUG = false

[CACHE]
DRIVER = file

[REDIS]
HOSTNAME = ${REDIS_HOST}
HOSTPORT = ${REDIS_PORT}
PASSWORD = ${REDIS_PASSWORD}
SELECT = 0

[LANG]
default_lang = zh-cn

EOF

